package aqua.smile.springboot.srvapi.controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Result {

    public static final int SUC_CODE = 0;

    private int code;
    private String msg;
    private Object data;


    public static Result okRs(Object data) {
        return new Result(SUC_CODE, null, data);
    }

}
